package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BsEntouragePresetsMapper;
import com.ruoyi.system.domain.BsEntouragePresets;
import com.ruoyi.system.service.IBsEntouragePresetsService;

/**
 * 副将预设Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-14
 */
@Service
public class BsEntouragePresetsServiceImpl implements IBsEntouragePresetsService 
{
    @Autowired
    private BsEntouragePresetsMapper bsEntouragePresetsMapper;

    /**
     * 查询副将预设
     * 
     * @param id 副将预设主键
     * @return 副将预设
     */
    @Override
    public BsEntouragePresets selectBsEntouragePresetsById(Long id)
    {
        return bsEntouragePresetsMapper.selectBsEntouragePresetsById(id);
    }

    /**
     * 查询副将预设列表
     * 
     * @param bsEntouragePresets 副将预设
     * @return 副将预设
     */
    @Override
    public List<BsEntouragePresets> selectBsEntouragePresetsList(BsEntouragePresets bsEntouragePresets)
    {
        return bsEntouragePresetsMapper.selectBsEntouragePresetsList(bsEntouragePresets);
    }

    /**
     * 新增副将预设
     * 
     * @param bsEntouragePresets 副将预设
     * @return 结果
     */
    @Override
    public int insertBsEntouragePresets(BsEntouragePresets bsEntouragePresets)
    {
        return bsEntouragePresetsMapper.insertBsEntouragePresets(bsEntouragePresets);
    }

    /**
     * 修改副将预设
     * 
     * @param bsEntouragePresets 副将预设
     * @return 结果
     */
    @Override
    public int updateBsEntouragePresets(BsEntouragePresets bsEntouragePresets)
    {
        return bsEntouragePresetsMapper.updateBsEntouragePresets(bsEntouragePresets);
    }

    /**
     * 批量删除副将预设
     * 
     * @param ids 需要删除的副将预设主键
     * @return 结果
     */
    @Override
    public int deleteBsEntouragePresetsByIds(Long[] ids)
    {
        return bsEntouragePresetsMapper.deleteBsEntouragePresetsByIds(ids);
    }

    /**
     * 删除副将预设信息
     * 
     * @param id 副将预设主键
     * @return 结果
     */
    @Override
    public int deleteBsEntouragePresetsById(Long id)
    {
        return bsEntouragePresetsMapper.deleteBsEntouragePresetsById(id);
    }
}
